<?php

namespace app\app\validate\shop;

use think\Validate;

class ShopGoodsValidate extends Validate
{
    protected $rule = [
        'id' => 'require|integer',
    ];


    protected $message = [
        'id.require' => 'The product ID cannot be null',
        'id.integer' => 'Product ids can only be integers',
    ];


    protected $scene = [
        'info' => ['id'],
    ];
}